package com.java.util;
//1.输入字符串，验证是否为163正确邮箱？
import java.util.Scanner;
 	
public class TestString {
	
	 String mail;
	 int l;
	 public void ismail(){
		 
		 System.out.println("请输入邮箱：");
		   // String mail;	
			Scanner in = new Scanner(System.in);
			mail = in.next();
			l = mail.length();
			
		 if(mail.endsWith("@163.com")&& l>12){
			 System.out.println("输入的"+mail+"为163邮箱");
		 }else
		 {System.out.println(mail+"不是163邮箱");}
	 }

	public static void main(String[] args) {
		
		TestString ts = new TestString();
		ts.ismail();
	}
}
